package com.example.springboot.ehcache;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;

//开启ehcache缓存支持，在标注有@Cacheable，@Cacheable，@CacheEvict，@CachePut才会起作用
@EnableCaching
@SpringBootApplication
@ComponentScan("com.example")
public class SpringbootEhcacheApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringbootEhcacheApplication.class, args);
	}
}
